<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>{% block title %}{% end %}</title>
    <!-- Bootstrap -->
    <link href="{{static_url("css/bootstrap.min.css")}}" rel="stylesheet" media="screen">
    <link href="{{static_url("css/bootstrap.custom.css")}}" rel="stylesheet">
    {% block head %}{% end %}
</head>
<body>
<div class="navbar">
    <div class="navbar-inner">
        <a class="brand" href="/">Cook</a>
        <ul class="nav">
            <li class="active"><a href="/">Home</a></li>
            <li class="divider-vertical"></li>
            <form class="navbar-form pull-left" action="/search" method="get">
              <input name="keyword" type="text" class="span2">
              <button type="submit" class="btn">Search</button>
            </form>
            <li class="divider-vertical"></li>
            <li><a href="/">Home</a></li>
            <li><a href="#">Link</a></li>
        </ul>
            <ul class="nav pull-right">
            {% if not current_user %}
              <li><a href="/auth/register">Register</a></li>
              <li><a href="/auth/login">Login</a></li>
            {% else %}
              <li><a href="/cook/{{current_user.get('uid')}}">{{current_user.get('nickname')}}</a></li>
              <li><a href="/auth/logout">Logout</a></li>
            {% end %}
        </ul>
    </div>
</div>
{% block body %}{% end %}
     <script src="{{static_url("js/jquery.js")}}"></script>
     <script src="{{static_url("js/bootstrap.min.js")}}"></script>
     <script src="{{static_url("js/custom.js")}}"></script>
</body>
</html>
